{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">    
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<h1 align="center"><font size="5px">Voucher Detail</font></h1>
<table cellpadding="2" cellspacing="0" border="1" align="center">
	<tr>
	  <th>Voucher :{$voucherType} </th>
	  <th>Date :{$transDate} </th>
	</tr>
	<tr>
	  <th colspan ="2">Voucher No :{$voucherNo} </th>
	</tr>
  <tr>
    <td valign="top">
	    <table cellpadding="2" cellspacing="0" border="1">
			  <tr style="font-size:13px;">
			    <th align="center" colspan="2">Credit</th>
			  </tr>
			  <tr style="font-size:13px;">
			    <th align="center">Account Name</th>
			    <th align="center">Amount</th>
			  </tr>
			  {section name=sec loop=$crDetailArray}
			  <tr style="font-size:13px;">
			    <td align="left"><a href="summaryDetail.php?accountId={$crDetailArray[sec].crAccountId}">{$crDetailArray[sec].crAccountName}</a></td>
			    <td align="right"><font color="blue">{$crDetailArray[sec].crAmount|string_format:"%.2f"}</font></td>
			  </tr>
			  {/section}
			  <tr style="font-size:13px;">
			    <th align="center">Total</th>
			    <th align="right"><font color="blue">{$crAmountTotal|string_format:"%.2f"}</font></th>
			  </tr>
			</table>
    </td>
    <td valign="top">
	    <table cellpadding="2" cellspacing="0" border="1">
	    	<tr style="font-size:13px;">
			    <th align="center" colspan="2">Debit</th>
			  </tr>
			  <tr style="font-size:13px;">
			    <th align="center">Account Name</th>
			    <th align="center">Amount</th>
			  </tr>
			  {section name=sec1 loop=$drDetailArray}
        <tr>
          <td align="left"><a href="summaryDetail.php?accountId={$drDetailArray[sec1].drAccountId}">{$drDetailArray[sec1].drAccountName}</a></td>
          <td align="right"><font color="red">{$drDetailArray[sec1].drAmount|string_format:"%.2f"}</font></td>
        </tr>
        {/section}
        <tr style="font-size:13px;">
			    <th align="center">Total</th>
			    <th align="right"><font color="red">{$drAmountTotal|string_format:"%.2f"}</font></th>
			  </tr>
      </table>
		</td>
  </tr>
</table>
</div>
{/block}